package com.dayu.gulimall;

/**
 * @author dayu
 * @version 1.0
 * @email dayu007@foxmail.com
 * @date 2021/4/22 7:27
 * @description
 */

public class Singleton2 {
    private static Singleton2 instance ;
    private Singleton2() {};
    public static Singleton2 getInstance()
    {
        if (instance==null){
            instance=new Singleton2();
        }
        return instance;
    }
}
